package cn.iocoder.idata.module.idata.dal.mysql.batchTask;

import java.util.*;

import cn.iocoder.idata.framework.common.pojo.PageResult;
import cn.iocoder.idata.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.idata.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.idata.module.idata.dal.dataobject.batchTask.BatchTaskDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.idata.module.idata.controller.admin.batchTask.vo.*;

/**
 * 批次任务 Mapper
 *
 * @author 智数源码
 */
@Mapper
public interface BatchTaskMapper extends BaseMapperX<BatchTaskDO> {

    default PageResult<BatchTaskDO> selectPage(BatchTaskPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<BatchTaskDO>()
                .orderByDesc(BatchTaskDO::getId));
    }

    default List<BatchTaskDO> selectList(BatchTaskExportReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<BatchTaskDO>()
                .orderByDesc(BatchTaskDO::getId));
    }

}
